package com.zlsy.es.dianping.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhouliang
 */
@Configuration
public class MyBatisConfig {

    /**
     * 记录SQL执行日志的切面
     *
     * @return
     */
    @Bean
    public SqlLogInterceptor getSqlStatementInterceptor() {
        return new SqlLogInterceptor();
    }
}
